#ifndef BOOTSETTING_H
#define BOOTSETTING_H

#include "AppLog.h"

typedef struct {
    int touchSound;
    int isFirstTimeLogin;
    int loginMode;
    int languageIndex;
    int isLogin;
    int currentUserId;
    int currentPatientId;
    int currentMirrorType;
    QString superPassword;
} BootSettingInfo;

namespace RuntimeData {
class BootSetting
{
public:
    static BootSetting* getInstance();
    BootSettingInfo g_bootSettingInfo;

    void loadBootSettingInfo();
    void saveBootSettingInfoToRom();

private:
    BootSetting();
    void setDefalutBootSettingInfo();
    void readBootSettingInfoByRom();
};
}

#endif // BOOTSETTING_H
